import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const SuperKey = 'Admin-Super'

export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}

export function getSuper() {
  return localStorage.getItem(SuperKey)
  // return localStorage.getItem(SuperKey)
}

export function setSuper(is_super) {
  return localStorage.setItem(SuperKey, is_super)
  // return localStorage.setItem(SuperKey, is_super)
}

export function remove() {
  localStorage.removeItem(SuperKey);
  return localStorage.removeItem(TokenKey);
  // Cookies.remove(SuperKey)
	// return Cookies.remove(TokenKey)
}
